#include "tidArr.h"
//初始化线程池
int tidArrInit(tidArr_t* ptidArr,int workNum){
    ptidArr->workerNum = workNum;//给线程池结构体 记录线程数量的变量赋值
    ptidArr->arr = (pthread_t*)malloc(workNum*sizeof(pthread_t));//为线程池动态创建内存
    return 0;
}
